package week11;

import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;

public class HashMapExample {
    public static void main(String[] args) {
        HashMap<String,String>stringStringHashMap=new HashMap<>();
        stringStringHashMap.put("1","李四");
        stringStringHashMap.put("2","王五");
        stringStringHashMap.put("3","赵六");
        Collection<String>collection=stringStringHashMap.values();
        Iterator<String>iterator=collection.iterator();
        while (iterator.hasNext()){
            System.out.println("iterator.next()="+iterator.next());
        }
    }
}
